import 'package:flutter/material.dart';
import './pages/index_page.dart';
import 'package:provide/provide.dart';
import './provide/counter.dart';

void main() {
  var counter = Counter();
  var providers = Providers();
  providers..provide(Provider<Counter>.value(counter));
  runApp(ProviderNode(child: MyApp(),providers: providers,));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        child: MaterialApp(
      title: '八鱼食用油',
      // 取消debug模式
      debugShowCheckedModeBanner: false,
      // 设置全局主题颜色
      theme: ThemeData(
        primaryColor: Color.fromRGBO(253, 104, 5, 1.0),
      ),
      home: IndexPage(),
    ));
  }
}
